/**
 * 
 */
package neptune.web.client.model;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * Questa classe incapsula le informazioni su di un Principal gestito dall'IAS, per renderle
 * serializzabili tramite GWT-RPC.
 * 
 * @author Roberto Bifulco [info@robertobifulco.it, robertobifulco.it]
 * 
 */
public class SerializableUser implements IsSerializable {

	private String username;
	private String role;
	private String password;
	private String email;

	/**
	 * 
	 */
	public SerializableUser() {
	}

	/**
	 * @param username
	 */
	public SerializableUser(String username) {
		this.username = username;
	}

	/**
	 * @param username
	 * @param role
	 */
	public SerializableUser(String username, String role) {
		this.username = username;
		this.role = role;
	}

	/**
	 * @param username
	 * @param role
	 * @param password
	 */
	public SerializableUser(String username, String role, String password) {
		this.username = username;
		this.role = role;
		this.password = password;
	}
	
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String toString() {
		return username + " " + password + " " + role;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	
}
